﻿/**************************************************************
 * Description:
 * FOChangeDocTypeBListUIModelAction.cs
 * Product: U9
 * Co.    : UFIDA Group
 * Author : Auto Generated
 * version: 2.0
 **************************************************************/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using UFSoft.UBF.Util.Log;
using UFSoft.UBF.UI.MD.Runtime;
using UFSoft.UBF.UI.ActionProcess;
using UFSoft.UBF.UI.IView; 
using System.Data;
using UFIDA.UBF.Query.CommonService;
using UFSoft.UBF.UI.FormProcess;
using UFSoft.UBF.UI.ControlModel;
using UFIDA.UBF.Query.CommonService.QueryStrategy;
using UFIDA.UBF.Query.CaseModel;
using UFIDA.U9.UI.PDHelper;
using UFSoft.UBF.ExportService;

namespace UFIDA.U9.Cust.OTD.ZF.SHXM3003.OTDListUI.FOChangeDocTypeBListUIModel
{
	public partial class FOChangeDocTypeBListUIModelAction : BaseAction
	{
		private static readonly ILogger logger = LoggerManager.GetLogger(typeof(FOChangeDocTypeBListUIModelAction));
		//强类型化基类Model属性.
		public new FOChangeDocTypeBListUIModelModel CurrentModel 
		{
			get {
				return (FOChangeDocTypeBListUIModelModel)base.CurrentModel;
			}
			set {
				base.CurrentModel = value ;
			}
		}
		
		public FOChangeDocTypeBListUIModelAction(IPart part) : base(part)
		{
		}
		//Model参数的构造,用于测试用例.
		public FOChangeDocTypeBListUIModelAction(FOChangeDocTypeBListUIModelModel model) : base(model)
		{
		}
		/// <summary>
		/// Help: 
		/// </summary>
		public void OnLookCase(object sender, UIActionEventArgs e)
		{
			//调用基类委托..
			this.InvokeAction(sender,e,this.OnLookCase_Extend);
		}
		private void OnLookCase_DefaultImpl(object sender, UIActionEventArgs e)
		{
	  
	 
			//加入{action.Name}的代码模版:.\UITpls\UICommonAction.tpl,参数:QryClick
            UFIDA.U9.UI.Commands.CommandFactory.DoCommand("QryClick",this,sender,e);

	  
		}
		/// <summary>
		/// Help: 
		/// </summary>
		public void OnCaseChanged(object sender, UIActionEventArgs e)
		{
			//调用基类委托..
			this.InvokeAction(sender,e,this.OnCaseChanged_Extend);
		}
		private void OnCaseChanged_DefaultImpl(object sender, UIActionEventArgs e)
		{
	  
	        QryService.OnCaseChangedDefault("DDLCase", this.CurrentPart);
		QueryAdjust();
	 

		}
		/// <summary>
		/// Help: 
		/// </summary>
		public void OnOutPut(object sender, UIActionEventArgs e)
		{
			//调用基类委托..
			this.InvokeAction(sender,e,this.OnOutPut_Extend);
		}
		private void OnOutPut_DefaultImpl(object sender, UIActionEventArgs e)
		{
	  
	 
			//加入{action.Name}的代码模版:.\UITpls\UICommonAction.tpl,参数:OnOutPut
            UFIDA.U9.UI.Commands.CommandFactory.DoCommand("OnOutPut",this,sender,e);

	  
		}
		/// <summary>
		/// Help: 
		/// </summary>
		public void OnGridRowDbClick(object sender, UIActionEventArgs e)
		{
			//调用基类委托..
			this.InvokeAction(sender,e,this.OnGridRowDbClick_Extend);
		}
		private void OnGridRowDbClick_DefaultImpl(object sender, UIActionEventArgs e)
		{
	  
	 

		}
		/// <summary>
		/// Help: 
		/// </summary>
		public void OnNew(object sender, UIActionEventArgs e)
		{
			//调用基类委托..
			this.InvokeAction(sender,e,this.OnNew_Extend);
		}
		private void OnNew_DefaultImpl(object sender, UIActionEventArgs e)
		{
	  
	 

		}
		/// <summary>
		/// Help: 
		/// </summary>
		public void OnPrint(object sender, UIActionEventArgs e)
		{
			//调用基类委托..
			this.InvokeAction(sender,e,this.OnPrint_Extend);
		}
		private void OnPrint_DefaultImpl(object sender, UIActionEventArgs e)
		{
	  
	 
			//加入{action.Name}的代码模版:.\UITpls\UICommonAction.tpl,参数:OnPrint
            UFIDA.U9.UI.Commands.CommandFactory.DoCommand("OnPrint",this,sender,e);

	  
		}
		/// <summary>
		/// Help: 
		/// </summary>
		public void OnDelete(object sender, UIActionEventArgs e)
		{
			//调用基类委托..
			this.InvokeAction(sender,e,this.OnDelete_Extend);
		}
		private void OnDelete_DefaultImpl(object sender, UIActionEventArgs e)
		{
	  
	 
			//加入{action.Name}的代码模版:.\UITpls\UICommonAction.tpl,参数:ListDeleteClick
            UFIDA.U9.UI.Commands.CommandFactory.DoCommand("ListDeleteClick",this,sender,e);

	  
		}
		#region Action的内置两个Action.
		/// <summary>
		/// Help: 数据加载(发生在Form的初始化加载时)
		/// </summary>
		public void OnLoadData(object sender, UIActionEventArgs e)
		{
			//UBF扩展处...
			this.OnLoadData_Extend(sender,e) ;
		}
		private void OnLoadData_DefaultImpl(object sender, UIActionEventArgs e)
		{
		   
		     InitCaseModel();
				}
		/// <summary>
		/// Help: 数据收集(发生在Form的CallBack或者是PostBack时)
		/// </summary>
		public void OnDataCollect(object sender, UIActionEventArgs e)
		{
			//UBF扩展处...
			this.OnDataCollect_Extend(sender,e) ;
		}
		private void OnDataCollect_DefaultImpl(object sender, UIActionEventArgs e)
		{
		    UFIDA.U9.UI.Commands.CommandFactory.DoCommand("DataCollect",this,sender,e);
		}
		#endregion
         

            
        #region BE列表自动产生的代码
        
		public void QueryAdjust()
		{
			IUFDataGrid UIGrid = this.CurrentPart.GetUFControlByName(this.CurrentPart.TopLevelContainer, "DataGrid1") as IUFDataGrid;

			BEQueryStrategyImpl beQryStrategyImpl = new BEQueryStrategyImpl(this.CurrentState, "UFIDA.U9.Cust.OTD.ZF.SHXM3003.OTDBE.FOChangeTypeBE.FOChangeDocType", "149ac148-63d2-431e-ba0e-a599288d2866", UIGrid.UIView, UIGrid, 1);

			beQryStrategyImpl.Adjust();
		    
			AfterQryAdjust_Extend(UIGrid);

			UIGrid.UIView.CurrentFilter.OPath = CustomFilterOpath_Extend(QryService.GetDefaultOpath((BaseWebForm)(this.CurrentPart)));
			UIGrid.UIView.CurrentFilter.OrderBy = QryService.GetOrderByOpath((BaseWebForm)(this.CurrentPart));

			UIGrid.UIView.Clear();
			this.NavigateAction.FirstPage(null);

			//20090316 UBF2.9_查询_yzx_修改查询设计器的tpl_用于显示多webpart查询的IE状态栏提示信息
			QryService.ShowQueryInfoInIEStatusBar((BaseWebForm)this.CurrentPart, UIGrid.UIView);
		}

		public void InitCaseModel()
		{
			QryService.ClearSession((UFSoft.UBF.UI.FormProcess.BaseWebForm)(this.CurrentPart));
			IUFDataGrid UIGrid = this.CurrentPart.GetUFControlByName(this.CurrentPart.TopLevelContainer, "DataGrid1") as IUFDataGrid;
			BEQueryStrategyImpl beQryStrategyImpl = new BEQueryStrategyImpl(this.CurrentState, "UFIDA.U9.Cust.OTD.ZF.SHXM3003.OTDBE.FOChangeTypeBE.FOChangeDocType", "149ac148-63d2-431e-ba0e-a599288d2866", UIGrid.UIView, UIGrid, 1);
			beQryStrategyImpl.QueryComponentXMLCompressed = @"rVVLbyNFEA4XLhz4C9bc2+nnTLcUZ7X2rIWlLAmJHSFu/ahOBsYz1sx4N7nBDYHQcmIlkBCcuCGQ
EEJZJH4Jt80GfgX02HE28T4UJPoyXdVd9VV9XVWz8cbGxsY/YbXfdr3Zbv58e+vOyTTvPICqzsqi
F5EujjpQ2NJlxVEvmjceyejO9tZ7c6hOB+V0VhZQNJ3M9SIbJ8pIAchKoIg7A0gmxCDKKOgk8cSL
4KvQU+hFw93BsS6OIC3t+HQGO1ndRB2X1bNcn777mhtQ2yqbNYvQos4x5LP2uwimvdWLlvcWisn+
KMTPlbaESxQzF4JiBJDRGJAWSlEpHZVxfHn/oJxXFobzPF9GMBmO0rvdieoO5nXT3R2n3Q+G3YN3
3r/PMGat3L/XXUXZgl8TL4OOOpPRYQYP00ofLcNrd2n5sIg6++BHhS93Su2WRwNtjyHa3urrOrPt
0YJUg41ROqGIKu0Q1zFHkgmLLFgjjIPYOLcidY3BV9IVoMflR7DQ7Zdlk4Zrg7Jo4KQ51Pl8YTrM
8gaqsTaHWZ2ZPOjG1TwkNCjz+bR4UX9QVs2L2qWXeyczXbgdeAB5L2IrH+va1sO6bjPQsXfJ1IIO
YahiIsbISGxQeFuCFHCKcCxCicUaQCb/lY69qvwQbDNKrwl7ujluxf7eqIHp8qi/tzuDSrfmS0U6
3l2d3D0KXZDm+TUpeDo5beWQxGR0PQllNFOeWCQdB8QxMBTe2CDLuVAx84YJ/38mMRndLx3kq0yU
4147q5FJtAotkTgUykog3Davwl4Dt63RsKymKxubiESKmCFiA9ucCoeMJxQRbkMfecDh+DlQMCDG
CSOVRMClDyChA431gIRyDHvMQxPKBTUpeD3Pm4Gu4bmwKJB6e2u5WZBGdKx5CA5RbEMEPlYtaQw5
yyURDiQYuSJtUIFuwO0Wa+ydf/rN+ZOzZ49//fvxL69kcvMGrCMQA6UWxTFph5q2KPCj2p2nErQE
JdZg+6cvhX16dnZLTCUkUTi8iHUQep7TBBmTeOSEMwZbRpTkK8z+vM4KqOvluLkB+/S3r88/+/7i
5yfn335+S2SBqTfKxQgUScKrsQQplzBELXcx6FgpUFfZhqdeQ7z4/auL7z65JRbwBINuy9AnJPBJ
aegHgxEJE48LHRIFtsJq3a+T+uUXFz/8dEssToiUhnhEQx5hioa6NJ6HKUIoVrEzVOursXFwHAbR
SwAvfvz49oAeCDDtGGIhGcRFqFtJWYxY+B9hqRyx5mpsp88drkE+e/Torz9eC7m53jGbN/pp8+Zv
evutjav1Lw==";
		    
			BeforeGetQry                                                                                                                                                                                                                                                                                                                   